package com.yuexunit.finance.project.entity.lexicon;

/**
 * @author wenwenlong
 */
public enum ReplenishMethodEnum {

	UNKNOWN("未知"), BULKSTOCK("货物"), CONTAINER("装箱货");

	private final String paramType;

	private ReplenishMethodEnum(String paramType) {
		this.paramType = paramType;
	}

	public String getValue() {
		return paramType;
	}

	/**
	 * 数字转为枚举类型
	 * @param value 补货方式 0:未知/1:货物/2:装箱货
	 * @return 参数类型枚举
	 */
	public static ReplenishMethodEnum valueOf(Integer value) {
		if (value == null || values().length <= value.intValue()) {
			return UNKNOWN;
		}
		return values()[value.intValue()];
	}
}
